package main

import "fmt"

func main() {
	var in string
	fmt.Scanln(&in)

	var out []rune
	var word []rune
	for _, i  := range in {
		if i == '_'{
			if len(word) != 0 {
				change := change(word)
				for _, t := range change {
					out = append(out, rune(t))
				}
			}
			out = append(out, '_')
			word = nil
		} else {
			word = append(word, rune(i))
		}
	}
	if len(word) != 0 {
		change := change(word)
		for _, t := range change {
			out = append(out, rune(t))
		}
	}
	fmt.Println(string(out))
}

func change(s []rune) (t []rune) {
	for i := 0; i < len(s); i++ {
		t = append(t, s[len(s)-i-1])
	}
	return
}